<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display" %>
<%@ page import="com.cs.beneficios.business.model.AtributoVO"%>

<script language="JavaScript" src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<script language="JavaScript" src="<%= request.getContextPath() + "/js/popUP.js" %>"></script>

<%@ page contentType="text/html;charset=utf-8"%>

<html>
  <head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>M&oacute;dulo de Secretarias</title>
    <link href="../../css/jdeveloper.css" rel="stylesheet" media="screen"/>
    <script language="JavaScript"> 

      function enviar(locacion1)
      {
        document.frmsubsecretarias.opcion.value='1';
        document.frmsubsecretarias.action=locacion1;
        document.frmsubsecretarias.submit();
      }
              
    </script>
  
  </head>
  <body>
  
   <link href="<%= request.getContextPath() + "/css/bloques.css" %>" rel="stylesheet" type="text/css"> 
    
    <form name="frmsubsecretarias" method="get">
      <br/>
      <logic:present scope="request" name="ListaSubAreas">
      <logic:iterate id="subareas" length="1" name="ListaSubAreas" type="com.cs.beneficios.business.model.AreaVO">
        <div align="center">
          <p class="titulosenblanco">Lista de subsecretarias de <bean:write name="subareas" property="nombre" /> </p>
        </div>
      </logic:iterate>
      </logic:present>
      <table  cellspacing="3" cellpadding="2" border="0" align="center">
          
          <tr>
          <td>
            <div align="center">
            <logic:present scope="request" name="ListaSubAreas">
              <display:table name="requestScope.ListaSubAreas" id="listArea" requestURI='<%= request.getContextPath() + "/Areas/SubAreas.do" %>' style="width:100%" class="bordesTable">
                <display:column headerClass="headerTable" property="nombre" title="SECRETARIA" class="Numero" sortable="true">
                </display:column>
                <display:column headerClass="headerTable" property="nombresubarea" title="SUBSECRETARIAS" class="Numero" sortable="true"> 
                </display:column>
                <display:column headerClass="headerTable" property="descripcion" title="DESCRIPCION" class="Numero" >
               </display:column>
               <display:column headerClass="headerTable" title="MODIFICAR" class="Numero" >
                  <DIV align="center">
                  <html:link paramId="code" paramName="listArea" paramProperty="code" page="/Areas/ModificationSubAreas.do">
                      <img border="0" src="<%=request.getContextPath() + "/images/modificar.gif"%>"/>
                  </html:link>
                  </DIV>
             </display:column>
             </display:table>
            </logic:present>
            
            <logic:notPresent scope="request" name="ListaSubAreas">
              <strong><DIV align="center" class="titulosenblanco">La secretaria no tiene subsecretarias</DIV></strong>
              <BR/>
            </logic:notPresent>
             
            </div>
          </td>
          </tr>
      </table>
      <div align="center">
      <% String Ruta2 = "'"+request.getContextPath() + "/Areas/ModuloAreas.do'"; %>
        <input type="HIDDEN" name="opcion"/>
        <input type="image" onclick="enviar(<%=Ruta2%>)" src="<%= request.getContextPath() + "/images/b_atras.gif"%>"/>
      </div>
    </form>
  </body>
</html>
